package bigdata.service;

import java.util.List;

public interface BaseService<T> {
    int save(T entity);
    int update(T entity);
    int deleteById(Integer id);
    T getById(Integer id);
    List<T> selectAll();
    List<T> selectByExample(Object example);
    List<T> selectPageByExample(Object example, int pageNum, int pageSize);
}
